$f: 19.2;


.home {
  position: relative;
  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    display: none;
    z-index: 1003;

    .close {
      position: absolute;
      right: 5%;
      top: 5%;
      cursor: pointer;
      z-index: 100;

      img {
        width: 30/$f+vw;
      }
    }

    .content {
      width: 100%;

      video {
        width: 80%;
        height: 80vh;
        object-fit: cover;
        display: block;
        margin: 0 auto;
      }
    }
  }
  .banner {
    position: relative;
    // &::before {
    //   content: '';
    //   display: block;
    //   position: absolute;
    //   left: 0;
    //   top: 0;
    //   width: 100%;
    //   height: 100%;
    //   background: rgba(0, 0, 0, .25);
    // }

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }

    .text {
      position: absolute;
      left: 240/$f+vw;
      bottom: 196/$f+vw;

      h1 {
        line-height: 1.2;
        color: #FFF;
        font-size: 75/$f+vw;
        font-weight: 600;
        text-transform: capitalize;
      }

      .line {
        width: 98/$f+vw;
        height: 8/$f+vw;
        background: linear-gradient(90deg, #3E88FF 0%, #146DFC 100%);
        margin-top: 10/$f+vw;
      }
    }
  }


  .main {
    margin: 100/$f+vw 240/$f+vw;

    .t {
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: capitalize;
      font-size: 48/$f+vw;
    }

    .tags {
      margin: 30/$f+vw 0;
      display: flex;

      span {
        padding: 2/$f+vw 10/$f+vw;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.08);
        color: #000;
        font-size: 14/$f+vw;

        &:not(:last-child) {
          margin-right: 24/$f+vw;
        }
      }
    }
    .time{
      color: #999;
      font-size: 18/$f+vw;
    }
    .html{
      margin: 30/$f+vw 0 60/$f+vw 0;
      color: #000;
      font-size: 20/$f+vw;
      line-height: 1.5;
      .pic{
        position: relative;
        img{
          width: 100%;
          display: block;
          object-fit: cover;
        }
        .play{
          position: absolute;
          left: 50%;
          top:50%;
          transform: translate(-50%,-50%);
          cursor: pointer;
          svg{
            width: 66/$f+vw;
            display: block;
          }
        }
      }
    }
    .pager{
      display: flex;
      justify-content: center;
      align-items: center;
      .prev{
        display: flex;
        align-items: center;
        color: #000;
        transition: all 600ms;
        svg{
          width: 10/$f+vw;
          display: block;
          path{
            transition: all 600ms;
          }
        }
        p{
          font-size: 20/$f+vw;
          margin-left: 16/$f+vw;
        }
        &:hover{
          color: #5E9EFF;
          svg{
            path{
               stroke: #5E9EFF;
            }
          }
        }
      }
      .back{
        margin: 0 150/$f+vw;
        color: #000;
        font-size: 20/$f+vw;
        transition: all 600ms;
        &:hover{
          color: #5E9EFF;
        }
      }
      .next{
        display: flex;
        align-items: center;
        color: #000;
        transition: all 600ms;
        svg{
          width: 10/$f+vw;
          display: block;
          path{
            transition: all 600ms;
          }
        }
        p{
          font-size: 20/$f+vw;
          margin-right: 16/$f+vw;
        }
        &:hover{
          color: #5E9EFF;
          svg{
            path{
               stroke: #5E9EFF;
            }
          }
        }
      }
    }
  }



  @media screen and (max-width: 1024px) {
    .banner {
      margin-top: 60px;

      img {
        height: 150px;
      }

      .text {
        left: 5%;
        width: 90%;
        bottom: 30%;

        h1 {
          font-size: 20px;
        }

        .line {
          width: 60px;
          height: 2px;
          margin: 5px 0 15px 0;
        }
      }
    }
    .main{
      margin: 30px 5% 60px 5%;
      .t{
        font-size: 24px;
        line-height: 1.2;
      }
      .tags{
        margin: 15px 0;
        span{
          padding: 2px 5px;
          font-size: 14px;
          &:not(:last-child){
            margin-right: 12px;
          }
        }
      }
      .time{
        font-size: 18px;
      }
      .html{
        margin: 30px 0  50px 0;
        font-size: 18px;
        .pic{
          .play{
            svg{
              width: 40px;
            }
          }
        }
      }
      .pager{
        .prev{
          svg{
            width: 10px;
          }
          p{
            font-size: 18px;
            margin-left: 8px;
          }
        }
        .back{
          margin: 0 30px;
          font-size: 18px;
        }
        .next{
          svg{
            width: 10px;
          }
          p{
            font-size: 18px;
            margin-right: 8px;
          }
        }
      }
    }
    .dialog {
      .close {
        top: 80px;

        img {
          width: 30px;
        }
      }

      .content {
        video {
          height: 60vh;
        }
      }
    }
  }
}